package com.ds.infrastructure.audit.client.config;

import com.ds.infrastructure.audit.client.handler.KbaTrackHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.Resource;

/**
 * 作用：
 *
 * @author WeiShaoying
 * @date 2020/7/29
 */
@ComponentScan(basePackages = {"com.ds.infrastructure.audit"})
public class KbaAuditConfiguration {

    @Resource
    private AuditConfig config;

    @Bean
    public KbaTrackHandler kbaTrackHandler() {
        return new KbaTrackHandler(config);
    }

}
